package com.netty.service.impl;

import com.annotation.Cmd;
import com.annotation.Module;
import com.common.protobuf.MessageModule;
import com.netty.service.UserReturnService;
import org.springframework.stereotype.Service;

/**
 * @author 顾志杰
 * @date 2021/3/17-14:06
 */
@Service
@Module(module = "user-return")
public class UserReturnServiceImpl implements UserReturnService {

    @Override
    @Cmd(cmd = "save-return")
    public void saveReturn(MessageModule.ResultType resultType,byte[] data){
        if(MessageModule.ResultType.SUCCESS.equals(resultType)){
            System.out.println("处理成功");
        }else{
            System.out.println("处理失败");
        }
    }

    @Override
    @Cmd(cmd = "update-return")
    public void updateReturn(MessageModule.ResultType resultType,byte[] data){
        if(MessageModule.ResultType.SUCCESS.equals(resultType)){
            System.out.println("处理成功");
        }else{
            System.out.println("处理失败");
        }
    }
}
